package user;

import book.BookList;
import operation.IOPeration;

public abstract class User {
    protected String name;
    protected IOPeration [] ioPerations;//用接口做类型是复用代码
    public User(String name) {

        this.name = name;
    }
    public abstract   int menu();
    public  void doIoperations(int choice, BookList bookList){
        ioPerations[choice].work(bookList);
    }
}
